# -*- utf-8 -*-
# schedule_tasks/schedules/tasks.py
from __future__ import absolute_import, unicode_literals
from celery import shared_task


@shared_task(bind=True)
def debug_task(self):
    with open('a.txt', 'w') as f:
        f.write(f'Hello Celery, the task id is: {self.request.id}')
    return f'Hello Celery, the task id is: {self.request.id}'
